const Handlebars = require('handlebars');
const source = `
<?xml version="1.0"?>
<items>
    <item uid="0" arg="industry-platform" valid="true" autocomplete="industry-platform"
          type="default">
        <title>industry-platform</title>
        <subtitle>config root.xml for industry-platform</subtitle>
    </item>
    <item uid="1" arg="enjoy-website" valid="true" autocomplete="enjoy-website"
          type="default">
        <title>enjoy-website</title>
        <subtitle>config root.xml for enjoy-website</subtitle>
    </item>
    <item uid="2" arg="enjoy-buying" valid="true" autocomplete="enjoy-buying"
          type="default">
        <title>enjoy-buying</title>
        <subtitle>config root.xml for enjoy-buying</subtitle>
    </item>
    <item uid="3" arg="tenmalife-platform" valid="true" autocomplete="tenmalife-platform"
          type="default">
        <title>tenmalife-platform</title>
        <subtitle>config root.xml for tenmalife-platform</subtitle>
    </item>
    <item uid="4" arg="jWeb" valid="true" autocomplete="jWeb" type="default">
        <title>jWeb</title>
        <subtitle>config root.xml for jWeb</subtitle>
    </item>
    <item uid="5" arg="dmc" valid="true" autocomplete="dmc" type="default">
        <title>dmc</title>
        <subtitle>config root.xml for dmc</subtitle>
    </item>
</items>
`;

const template = Handlebars.compile(source);

const data = {};

const result = template(data);

console.log(result);